<?php
require_once("conn.php");
require_once("functions.php");
//echo "<pre>";
//print_r($config);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>微有趣</title>
		<meta name="keywords" content=""/>
		<meta name="description" content=""/>
		<meta name="apple-mobile-web-app-capable" content="yes"/>
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
		<link rel="stylesheet" type="text/css" href="./assets/css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./assets/css/question.css"/>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			function changeSize() {
				var propo = $(window).width() / 640;
				$('html').css('font-size', 40 * propo + 'px');
			};
			changeSize();
			$(window).resize(function() {
				changeSize();
			});
		</script>
	</head>
	<body>
		<div class="wrap">
			<div class="new">
				<div class="new_tit clearfix">
					<span class="new_icon"></span>常见问题<span style="text-align: right;display: inline-block;float: right;">点击问题查看详情</span>
				</div>
				<ul class="new_list">
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">评论打赏问题</div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix" style="margin: 0; padding: 0;">
							<div class="ms" style="width: 100%;"><img style="width: 100%" src="assets/images/question/rmpl.jpg"/></div>
						</div>
					</li>
					<?php
					$allSql = "select * from `fre_questions`";
					$allRow = $mysql->query($allSql);
					foreach($allRow as $value){
					?>	
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con"><?=$value['title']?></div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix">
							<div class="ms"><?=$value['content']?></div>
						</div>
					</li>
				<?php }?>
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">金币提现流程</div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix" style="margin: 0; padding: 0;">
							<div class="ms" style="width: 100%;"><img style="width: 100%" src="assets/images/question/tx.jpg"/></div>
						</div>
					</li>
					<li class="new_task">
						<div class="new_nav clearfix">
							<span class="new_icon2"></span><div class="new_con">检测App版本是否为最新版本</div><span class="chart"></span>
						</div>
						<div class="new_down border1 clearfix" style="margin: 0; padding: 0;">
							<div class="ms" style="width: 100%;"><img style="width: 100%" src="assets/images/question/bbjc.jpg"/></div>
						</div>
					</li>
				</ul>
			</div>
			<!--<div class="btn">
				分享助手下载
			</div>-->
		</div>
		
		<script type="text/javascript">
		$(".btn").click(function(){
			window.location.href = "http://f.wangqu.me/picture/plug1-weiyue.apk";
		})
			$(function(){
					var num = true;
					$(".new_nav").click(function(){
						if($(this).siblings(".new_down").css("display") == "block"){
							num= false;
						}else{
							num = true;
						}
						if(num){
							num = false;
							$(this).siblings(".new_down").show();
							$(this).find(".chart").css("background-image","url(../weiApp/assets/images/task/top.png)");
						}else{
							num = true;
							$(this).siblings(".new_down").hide();
							$(this).find(".chart").css("background-image","url(../weiApp/assets/images/task/down.png)");
						}
						
					});	
			});
			function jumpNews(){
				window.jsObj.readyGoNews();//首页
			}
			function jumpUser(){
				window.jsObj.readyGoUser();//微信绑定
			}
			function jumpPublish(){
				window.jsObj.readyGoPublish();//发表
			}
			function jumpArticles(){
				window.jsObj.readyGoArticles();//文章
			}
			
		</script>
	</body>
</html>
